#include "CApp.h"
 
void CApp::OnCleanup()
{
    SDL_FreeSurface(Surf_Display);
    for(std::list<CEntity*>::iterator it = CEntity::EntityList.begin(); it != CEntity::EntityList.end(); it++)
    {
        (*it)->OnCleanup();
    }
    CArea::AreaControl.OnCleanup();
    SDL_Quit();
}